package com.meida.module.bus.provider.service.impl;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.common.mybatis.query.CriteriaSave;
import com.meida.common.utils.FlymeUtils;
import com.meida.module.bus.client.entity.BusMaterialPackage;
import com.meida.module.bus.client.entity.BusMaterialSrm;
import com.meida.module.bus.provider.mapper.BusMaterialSrmMapper;
import com.meida.module.bus.provider.service.BusMaterialSrmService;
import com.meida.common.mybatis.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 接口实现类
 *
 * @author flyme
 * @date 2020-10-21
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class BusMaterialSrmServiceImpl extends BaseServiceImpl<BusMaterialSrmMapper, BusMaterialSrm> implements BusMaterialSrmService {

    @Resource
    private BusMaterialSrmMapper busMaterialSrmMapper;

    @Override
    public List<BusMaterialPackage> getBusMaterialPackage(Long projectId) {
        return busMaterialSrmMapper.getBusMaterialPackage(projectId);
    }
}
